//
// Created by Administrator on 2024/10/30.
//
#include "MetadataSlimHandler.h"

bool MetadataSlimHandler::handlePost(CivetServer *server, struct mg_connection *conn) {
    nlohmann::json json_data;
    json_data["msg"] = "metadata slim";
    std::string s = json_data.dump(0);

    char *c = const_cast<char *>(s.c_str());
    mg_send_http_ok(conn, "application/json; charset=utf-8", s.size());
    mg_write(conn, c, s.size());
    return true;
}

